package xyz.erupt.flow.bean.entity.node;

import java.util.Arrays;

/**
 * @author PP
 * @version 1.0
 * @project Erupt
 * @description 监听器Http请求数据
 * @date 2024/8/29 10:21:43
 */
public class OaProcessNodeHttpData {
    @Override
    public String toString() {
        return "HttpData{" +
                "url='" + url + '\'' +
                ", method='" + method + '\'' +
                ", headers=" + Arrays.toString(headers) +
                ", body=" + body +
                ", preHandler='" + preHandler + '\'' +
                ", aftHandler='" + aftHandler + '\'' +
                '}';
    }

    //请求地址
    private String url="";
    //请求方法
    private String method="";
    private OaProcessNodeHeader[] headers;
    private OaProcessNodeBody body;
    private String preHandler;
    private String aftHandler;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public OaProcessNodeHeader[] getHeaders() {
        return headers;
    }

    public void setHeaders(OaProcessNodeHeader[] headers) {
        this.headers = headers;
    }

    public OaProcessNodeBody getBody() {
        return body;
    }

    public void setBody(OaProcessNodeBody body) {
        this.body = body;
    }

    public String getPreHandler() {
        return preHandler;
    }

    public void setPreHandler(String preHandler) {
        this.preHandler = preHandler;
    }

    public String getAftHandler() {
        return aftHandler;
    }

    public void setAftHandler(String aftHandler) {
        this.aftHandler = aftHandler;
    }
}
